package com.yc.bran.snack.service;

import java.util.List;
import java.util.Map;

import org.springframework.web.multipart.MultipartFile;

import com.yc.bran.snack.bean.GoodsInfo;

public interface IGoodsInfoService {

	List<GoodsInfo> selectAllGoodsInfo(int tid);

	List<GoodsInfo> getgoodsinfo();

	List<GoodsInfo> selectGoodsInfo(int gid);

	int close(int gid);

	int open(int gid);
	
	List<GoodsInfo> getgoods();

	List<GoodsInfo> getredisGoodsInfo();
	
	int updateGblance(int gid, int newGblance);
	
	int selectGblance(int gid);
	
	List<Map<String, Object>> selectbackgoodsinfo();
	
	List<String> handleFileUpload(List<MultipartFile> gpic);

	int add(Integer tid, String gname, Double gprice, String ginfo, Double gweight, Integer gblance, String gpic);  
}
